/*
 * @Description: app初始化操作
 * @Author: HuiSir<273250950@qq.com>
 * @Date: 2021-12-27 10:16:21
 * @LastEditTime: 2025-08-11 19:22:13
 */
import useWinResize from "./hooks/useWinResize";
import { useThemeStore } from "@/store";

/**
 * 初始化操作，与app.vue合并
 */
export default {
  created() {
    // 初始化主题色
    const themeStore = useThemeStore();
    themeStore.setStates({ color: themeStore.color });

    // 执行监听窗口resize
    useWinResize();
  },
};
